﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;

namespace C4F.DevKit.Bluetooth
{
    namespace FileTransferProfile
    {

        /// <summary>
        /// EventArgs class to be used when an SendFile operation 
        /// completes.
        /// </summary>
        public class SendFileCompletedEventArgs : AsyncCompletedEventArgs
        {
            #region Private Members

            /// <summary>
            /// The location of the file on local device that is being pushed
            /// on remote device.
            /// </summary>
            private string locFilePath;

            #endregion

            #region Public Properties

            /// <summary>
            /// The location of the file on local device that is being pushed
            /// on remote device.
            /// </summary>
            public string LocalFilePath
            {
                get
                { return this.locFilePath; }
            }

            #endregion

            #region Constructor
            /// <summary>
            /// Initializes the SendFileCompletedEventArgs object.
            /// </summary>
            /// <param name="localFilePath">The location of the file on local device
            /// that is being pushed on remote device.</param>        
            /// <param name="error">An error that occurred during the 
            /// asynchronous operation.</param>
            /// <param name="cancelled">A value indicating whether the 
            /// asynchronous operation was
            /// cancelled.</param>
            /// <param name="userState">The user-supplied state object
            /// supplied when the asynchronous operation was requested.</param>


            public SendFileCompletedEventArgs(string localFilePath,
                                              Exception error,
                                              bool cancelled,
                                              object userState)
                : base(error, cancelled, userState)
            {

                this.locFilePath = localFilePath;

            }
            #endregion
        }
    }
}